<%--
 *  File:    ActivityManageHit.jsp
 *  @Author: liangchen
 *  Date:    2009-10-10

 *  Copyright (C) 2000 - 2009 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>
<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java"%>
<%@ page import="java.util.*"%>
<%@ page import="org.apache.log4j.Category"%>
<%@ page import="com.oval.util.OvalLabel"%>
<%@ page import="com.oval.util.OvalCustomMessage"%>
<%@ page import="com.oval.util.OvalCustomColumn"%>

<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval"%>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom"%>

<%
	  //init param
  String privilegeCode = "SFE0150";
  String strTableName = "";
  String strModuleName = "CRM";
  	String contextPath = request.getContextPath();
%>

<%@ include file="/inc/Security.inc"%>
<%@ include file="/inc/PageDefault.inc"%>
<%@include file="/inc/Print.inc"%>
<%@ include file="/inc/FrmDefault.inc"%>


<iframe name="reloadHandler" style="display:none" ></iframe>
<html>
	<head>
		<title>ActivityManageHit</title>
		
		<PageFlow:CheckPageFlow pageName="p_activitymanagehit" />
		
	<%
    Vector totalsummary = (Vector) pageContext.getAttribute("basedetails");
    if (totalsummary == null)
        totalsummary = new Vector();
    
    Vector proddetails = (Vector) pageContext.getAttribute("proddetails");
    if (proddetails == null)
    	proddetails = new Vector();
    
    Vector orgdetails = (Vector) pageContext.getAttribute("orgdetails");
    if (orgdetails == null)
    	orgdetails = new Vector();
    
    Vector userdetails = (Vector) pageContext.getAttribute("userdetails");
    if (userdetails == null)
    	userdetails = new Vector();
    
    

	%>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="<%= contextPath %>/css/<%= strLanguageCode %>/main.css"
			type="text/css">
		<script language="JavaScript"
			src="<%= contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
		<script language="JavaScript" src="<%= contextPath %>/js/FuncLib.js"></script>
		<script language="JavaScript" src="<%= contextPath %>/js/ScriptLib.js"></script>
		<script language="JavaScript" src="<%= contextPath %>/js/keyFunction.js"></script>
		<script language="JavaScript" src="<%= contextPath %>/js/Calendar.js"></script>
		<script language="JavaScript" src="<%= contextPath %>/js/SummaryDivision.js"></script>
		<%@ include file ="/inc/NewCalendar.inc" %>
		<%@ include file="/inc/SummaryDivision.inc"%>
		
		<%
  HashMap userinfo = new HashMap();
  userinfo = (HashMap)session.getAttribute("userinfo");
  Integer orgid=new Integer(-1);
  String neworgid = null;
  if(userinfo.get("orgid")!=null)
  orgid = (Integer)userinfo.get("orgid");
  neworgid = orgid.toString();
    System.out.println("Trace \"isdefault\" ------- detail edit"+pageContext.getAttribute("isdefault"));
    String paraIsDefault = "";
  	String strIsDefault = null;
	if("Y".equals(((String)pageContext.getAttribute("isdefault")))) {
		strIsDefault = "&isdefault=Y";
		paraIsDefault = "Y";
	}else if ("N".equals(((String)pageContext.getAttribute("isdefault")))) {
		strIsDefault = "&isdefault=N";
		paraIsDefault = "N";
	}
		Vector actioninfo = (Vector)(pageContext.getAttribute("actioninfo"));
	%>
	<%
		HashMap newdetailinfo = null;
		if(pageContext.getAttribute("newdetailinfo") != null) { 
			newdetailinfo = (HashMap)(pageContext.getAttribute("newdetailinfo")); 
		}
	%>
	<%
		String isdetail = "";
		if("Y".equals(((String)pageContext.getAttribute("isdetail")))) {
			isdetail = "Y";
		}
		  String isNew = "";
		  if("Y".equals((String)pageContext.getAttribute("isNew"))) {
				isNew = "Y";
			}else if ("N".equals((String)pageContext.getAttribute("isNew"))) {
				isNew = "N";
			}
		    System.out.println("Trace \"isnew\" ------- detail edit"+isNew);
		    
		    String activityscope = (String)pageContext.getAttribute("activityscope");
		    Integer detailtype = (Integer)pageContext.getAttribute("detailtype");
	%>
<script>
function page_summary(actionvalue,orderbyname){
	  var editform = summaryPrepare(actionsummaryform,actionvalue,orderbyname);
	  editform.action = "ActivityManageHit.jsp?<%= OvalTools.randomURL() %>&languagecode=<%= strLanguageCode %>";
	  editform.target = "_self";
	  isRunning = true;
	  editform.submit();  
}
function ensure() {
	  var editform = document.actionsummaryform;
	  editform.actionname.value = "move";
	  editform.target = "_self";
	  isRunning = true;
	  editform.submit();
	  cancel();
	}
	function page_getitem()
{
    document.actionsummaryform.tenderpropertyid.value='';
    document.actionsummaryform.activitypropertyname.value='';
    document.actionsummaryform.description.value='';
    document.actionsummaryform.needfeedback.value='';
    
    if(isEmpty(document.actionsummaryform.activitypropertycode.value))
    {
        return;
    }
    page_handleRequest('<%=contextPath%>',document.actionsummaryform);
}
function page_handleResponse()
{
    document.actionsummaryform.tenderpropertyid.value = getResponseData("tenderpropertyid");
    document.actionsummaryform.activitypropertyname.value= getResponseData("activitypropertyname");
   document.actionsummaryform.description.value = getResponseData("description");
   document.actionsummaryform.needfeedback.value = getResponseData("needfeedback");
   document.actionsummaryform.needsku.value= getResponseData("needsku");
   document.actionsummaryform.feedbacktype.value= getResponseData("feedbacktype");
   
  checkdisabled();
}
function page_getitem1(){
	var activitypropertycode = document.actionsummaryform.activitypropertycode.value;
	var datahandler = new  DataHandler();
	datahandler.add_params("activitypropertycode" , activitypropertycode , "string");
	datahandler.add_params("orgid","<%=orgid%>" , "integer");
	datahandler.getResult("tenderpropertyid","document.actionsummaryform.tenderpropertyid");
	datahandler.getResult("activitypropertyname","document.actionsummaryform.activitypropertyname");
	datahandler.getResult("description","document.actionsummaryform.description");
	datahandler.getResult("needfeedback","document.actionsummaryform.needfeedback");
	datahandler.getResult("needsku","document.actionsummaryform.needsku");
	datahandler.getResult("feedbacktype","document.actionsummaryform.feedbacktype");
	datahandler.add_job("j_getactioniteminfo");
	datahandler.runDataHandler();
	datahandler.add_function(checkdisabled());
}
var popwindow;
function page_selectaction()
{
  if(popwindow!=null)
    popwindow.close();
  popwindow = window.open('DisPropertyPop.jsp?maxitem=12&languagecode=<%= strLanguageCode%>&<%= OvalTools.randomURL() %>','newwindow', 'height=400, width=850,top=150,left=300,toolbar=n0, menubar=no, scrollbars=auto, resizable=yes, location=no, status=no');
}
         
function page_setactionid(actionid,activitypropertycode,actionname,description,needprod,valuename,relatedcode)

{
  document.actionsummaryform.tenderpropertyid.value = actionid;
  document.actionsummaryform.activitypropertycode.value = activitypropertycode;
  document.actionsummaryform.activitypropertyname.value = actionname;
  document.actionsummaryform.description.value = description;

  document.actionsummaryform.needprod.value = needprod;
  document.actionsummaryform.valuename.value = valuename;
  document.actionsummaryform.relatedcode.value = relatedcode;
  checkdisabled(needprod);
	
  if (popwindow != null)
    popwindow.close();
}
function checkdisabled() {
	var needprod = document.getElementsByName("needprod");
	
  if(needprod[0].value == "Y") {

  	document.actionsummaryform.needprod.checked = true;

  }
  else if (isEmpty(needprod[0].value )) {
    document.actionsummaryform.needprod.checked = false;
  }
}


function page_back()
{  
  parent.location.href = "ActivityManageSummary.jsp?<%= OvalTools.randomURL() %>&languagecode=<%= strLanguageCode%><%=JspHelper.filterNull( strIsDefault)%>";
}



</script>
	</head>
	 <%
		 String activitymanageid = null;
		 activitymanageid = (pageContext.getAttribute("activitymanageid")).toString(); 
		 

	 %>
	 <%
	    HashMap visitprocessinfo = (HashMap) pageContext.getAttribute("visitprocessinfo");
	    if (visitprocessinfo == null)
	    	visitprocessinfo = new HashMap();
	 %>	 
	<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

		<form name="actionsummaryform" method="post" action="<%=contextPath %>/Dispatcher">

			<input type="hidden" name="pagename" value="p_activitymanagehit">
			<input type="hidden" name="actionname">   
			<input type="hidden" name="isdefault" value="<%= paraIsDefault %>">
			<input type="hidden" name="isNew" value="<%= isNew %>">	
			
			<custom:hidden property="activitymanageid" />
			<input type="hidden" name="activityscope" value="<%=activityscope %>"/>
			<input type="hidden" name="detailtype" value="<%=detailtype %>"/>
    <table width="100%" cellspacing="0" border="0" cellpadding="0">  
   
    
    
       
      <tr>
        <td>          
          <table width="100%" border="0" cellspacing="0">           
            <tr><td class="summary_top"></td></tr>
            <tr><td ><%=label.getLabelName("L_BasicInfo")%><%=label.getLabelName("L_Colon")%></td></tr>            
          </table>
        </td>
      </tr>
      
       <tr>
        <td>
          <table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
            <%

            
            int num=0;
			String strCheck="";
			String activitybasedetailidstr=null;
			String activitypropertyidstr=null;
            for(int i=0;i<totalsummary.size();i++)
            {
            	HashMap tempMap=(HashMap)totalsummary.get(i);
           		Integer propertyID=(Integer)tempMap.get("activitypropertyid");
           		activitypropertyidstr=propertyID.toString();
           		Integer odetailtype=(Integer)tempMap.get("contenttype");
				if("Y".equals(tempMap.get("detailcheck"))){
				strCheck="checked";}
				pageContext.setAttribute("basehash",tempMap);
                Integer idxnum=new Integer(num);
            %>
            
             <% if (num % 2 == 0){%>
             <tr > 
             <%}%>
          			<td width="10%"><%=tempMap.get("activitypropertyname")%></td>
          			<td width="40%">
          			<input type="hidden"  name="activitymanageid<%=num%>" value="<%=activitymanageid%>" />
					<input type="hidden" name="activitypropertyid<%=num%>"  value="<%=activitypropertyidstr%>" />
					<input type="hidden" name="activitybasedetailid<%=num%>" value="<%=tempMap.get("activitybasedetailid")%>"/>
					<input type="hidden" name="detailtype<%=num%>" value="2"/>
					<%
					if(odetailtype.intValue()==1){
					%>
					<custom:text property="detailnumber" name="basehash"  size="8" colIndex="<%=idxnum %>"/>
					<custom:hidden  name="basehash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%}else if(odetailtype.intValue()==2){%>
					<custom:textarea name="basehash" property="detailtext" rows="2" cols="95" colIndex="<%=idxnum %>"/>
					<custom:hidden  name="basehash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%}else if(odetailtype.intValue()==5){%>
        			<custom:hidden  name="basehash"  property="detailattrachid"   colIndex="<%=idxnum%>"/>
        			<custom:hidden  name="basehash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
        			<iframe src="<%=contextPath%>/sfe/activity/ActivityManageFileUpload.jsp?activitymanagefilesid=<custom:write  name="basehash"  property="detailattrachid" />&feedbackstatus=<custom:write  name="visitprocessinfo"  property="status" />&detailno=<%=num%>&baseorskutype=base&<%= OvalTools.randomURL() %>" width="300" height="50" ></iframe>
					<%}else if(odetailtype.intValue()==6){ %>
					<custom:hidden  name="basehash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:text property="detaildate" colIndex="<%=idxnum %>"  dataType="date"  module="IMG" size="30" name="basehash" command="notnull" label="L_EndDate"/>
					<a onclick="javascript:c.show(this,'actionsummaryform.detaildate<%=idxnum %>','yyyy-MM-dd');"><custom:button type="3" label="L_Asterisk" imgsrc="Time.gif" border="0"/></a>
					<%}else if(odetailtype.intValue()==8){
	          			   String oSourcetype=(String)tempMap.get("sourcetype");
	          				Vector vBasefeedbacktypes=(Vector)pageContext.getAttribute("propertydetails");	
	          				if(vBasefeedbacktypes==null)
	          					vBasefeedbacktypes=new Vector();
	          				HashMap oneBaseFeedtype=new HashMap();
	          				int base=0;
	          			    if(vBasefeedbacktypes !=null){
	          			     for(int sj=0;sj<vBasefeedbacktypes.size();sj++){
	          			    	HashMap actionMap=(HashMap)vBasefeedbacktypes.get(sj);
	          			     if(actionMap.get("stype").equals(oSourcetype)){
	          			     %>
	          			     <input type="checkbox" name="basevalues<%=String.valueOf((Integer)tempMap.get("activitybasedetailid")) %>" id="baseids_<%=String.valueOf((Integer)tempMap.get("activitybasedetailid"))+"_"+((HashMap)vBasefeedbacktypes.get(sj)).get("typevalue")%>" value="<%=((HashMap)vBasefeedbacktypes.get(sj)).get("typevalue") %>" class="normalradio" />
	          			     
	          			     <%=((HashMap)vBasefeedbacktypes.get(sj)).get("sourcetypename") %>
	          			     <% if(base %5 ==0 && base!=0){ %>
	          			      <br>
	          			     <%} %>
	          			     <% 
	          			          oneBaseFeedtype.put(((HashMap)vBasefeedbacktypes.get(sj)).get("typevalue"),((HashMap)vBasefeedbacktypes.get(sj)).get("sourcetypename"));  
	          			          base++;
	          			    	 }
	          			     }
	          			    }%>
	          			    <custom:hidden  name="basehash"  property="detailchoose"   colIndex="<%=idxnum%>"/>
	          			    <custom:hidden  name="basehash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%
					}else{
					%>
					<input type="checkbox" name="sdetailcheck<%=idxnum %>" <%=strCheck%> class="normalradio"/>
          			<custom:hidden  name="basehash"  property="detailcheck"  colIndex="<%=idxnum%>"/>
          			<custom:hidden  name="basehash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%} %>
					</td>
          	<% if (num % 2 == 1){%>
          	</tr>
          	<%}%>
          	<%
          	num++;
          	}%>
          </table>
         </td>
       </tr>  




<%
		Vector propertynames = (Vector) pageContext.getAttribute("propertynames");
		if (propertynames == null)propertynames = new Vector();
		if(propertynames.size()>0){ 
%>

	 <tr>
        <td>          
          <table width="100%" border="0" cellspacing="0">           
            <tr><td class="summary_top"></td></tr>
            <tr><td ><%=label.getLabelName("L_ProductFeedbackInfo")%><%=label.getLabelName("L_Colon")%></td></tr>            
          </table>
        </td>
      </tr>



	<tr>
        <td>
          <table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
              <tr class="deepblue-left">
	         		<td class="title_center"><%=label.getLabelName("L_ProdName")%></td>
         	<%

            for(int i=0;i<propertynames.size();i++)
            {
            	HashMap nameMap=(HashMap)propertynames.get(i);
         	%>
         			<td class="title_center"><%=nameMap.get("activitypropertyname")%></td>	
            <%
            }
           %> 
         	 </tr>
         	 
         	 <tr>
            
            <%
            Vector prdndetails = (Vector) pageContext.getAttribute("prdndetails");
            if (prdndetails == null)prdndetails = new Vector();
			
            for(int j=0;j<prdndetails.size();j++)
            {
            	HashMap actionMap1=(HashMap)prdndetails.get(j);
           		Integer detailID=(Integer)actionMap1.get("prodid");
			
	        %> 
	        <td><%=actionMap1.get("prdn")%></td>
	        
	        <%
			String strCheck1="";
            for(int i=0;i<proddetails.size();i++)
            {
            	HashMap prodMap=(HashMap)proddetails.get(i);
            	Integer idxnum=new Integer(num);
           		Integer propertyID=(Integer)prodMap.get("activitypropertyid");
           		activitypropertyidstr=propertyID.toString();
           		Integer odetailtype=(Integer)prodMap.get("contenttype");
           		Integer detailNumber=(Integer)prodMap.get("prodid");
           		if(prodMap.get("prodid")==null){
           			detailNumber=detailID;
           		}
           		Integer detailNumber11=(Integer)prodMap.get("activitybasedetailprodid");
				if("Y".equals(prodMap.get("detailcheck"))){
				strCheck1="checked";}
				pageContext.setAttribute("prodhash",prodMap);
				if(detailNumber==null){
                
            %>
			
			
			        <td>
          			<input type="hidden"  name="activitymanageid<%=num%>" value="<%=activitymanageid%>" />
          			<input type="hidden"  name="prodid<%=num%>" value="<%=String.valueOf((Integer)actionMap1.get("prodid"))%>" />
					<input type="hidden" name="activitypropertyid<%=num%>"  value="<%=activitypropertyidstr %>" />
					<input type="hidden" name="activitybasedetailprodid<%=num%>" value="<%=prodMap.get("activitybasedetailprodid")%>"/>
					<input type="hidden" name="detailtype<%=num%>" value="2"/>
					<%
					if(odetailtype.intValue()==1){
					%>
					<custom:text property="detailnumber" name="prodhash"  size="8"  colIndex="<%=idxnum %>"/>
					<custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%}else if(odetailtype.intValue()==2){%>
					<custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:textarea name="prodhash" property="detailtext" rows="2" cols="95" colIndex="<%=idxnum %>"/>
					<%}else if(odetailtype.intValue()==5){%>
        			<custom:hidden  name="prodhash"  property="detailattrachid"   colIndex="<%=idxnum%>"/>
        			<custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
        			<iframe src="<%=contextPath%>/sfe/activity/ActivityManageFileUpload.jsp?activitymanagefilesid=<custom:write  name="prodhash"  property="detailattrachid" />&feedbackstatus=<custom:write  name="visitprocessinfo"  property="status" />&detailno=<%=num%>&baseorskutype=prod&<%= OvalTools.randomURL() %>" width="300" height="50" ></iframe>					
					<%}else if(odetailtype.intValue()==6){ %>
					<custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:text property="detaildate" colIndex="<%=idxnum %>"  dataType="date"  module="IMG" size="30" name="prodhash" command="notnull" label="L_EndDate"/>
					<a onclick="javascript:c.show(this,'actionsummaryform.detaildate<%=idxnum %>','yyyy-MM-dd');"><custom:button type="3" label="L_Asterisk" imgsrc="Time.gif" border="0"/></a>
					<%}else if(odetailtype.intValue()==8){
	          			   String oSourcetype=(String)prodMap.get("sourcetype");
	          				Vector Prodfeedbacktypes=(Vector)pageContext.getAttribute("prodpropertydetails");	
	          				if(Prodfeedbacktypes==null)
	          					Prodfeedbacktypes=new Vector();
	          				HashMap prodBaseFeedtype=new HashMap();
	          				int base=0;
	          			    if(Prodfeedbacktypes !=null){
	          			     for(int sj=0;sj<Prodfeedbacktypes.size();sj++){
	          			    	HashMap pactionMap=(HashMap)Prodfeedbacktypes.get(sj);
	          			     if(pactionMap.get("type").equals(oSourcetype)){
	          			     %>
	          			     <input type="checkbox" name="prodvalues<%=activitypropertyidstr%>" id="prodids_<%=activitypropertyidstr+"_"+((HashMap)Prodfeedbacktypes.get(sj)).get("value")+"_"+(String.valueOf((Integer)actionMap1.get("prodid")))+"_"+prodMap.get("activitybasedetailprodid")%>" value="<%=((HashMap)Prodfeedbacktypes.get(sj)).get("value") %>" class="normalradio" />
	          			     
	          			     <%=((HashMap)Prodfeedbacktypes.get(sj)).get("sourcetypename")%>
	          			     <% if(base %5 ==0 && base!=0){ %>
	          			      <br>
	          			     <%} %>
	          			     <% 
	          			          prodBaseFeedtype.put(((HashMap)Prodfeedbacktypes.get(sj)).get("value"),((HashMap)Prodfeedbacktypes.get(sj)).get("sourcetypename"));  
	          			          base++;
	          			    	 }
	          			     }
	          			    }%>
	          			    <custom:hidden  name="prodhash"  property="detailchoose"   colIndex="<%=idxnum%>"/>
	          			    <custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>	
	          			    				
					<%}else{%>
					<input type="checkbox" name="sdetailcheck<%=idxnum %>" value="Y" <%=strCheck1%> class="normalradio"/>
          			<custom:hidden  name="prodhash"  property="detailcheck"  colIndex="<%=idxnum%>"/>
          			<custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%} %>
					</td>
					
					<%num++;}else if(detailNumber!=null && detailID.intValue()==detailNumber.intValue()){  %>
					
					
					<td>
          			<input type="hidden"  name="activitymanageid<%=num%>" value="<%=activitymanageid%>" />
          			<input type="hidden"  name="prodid<%=num%>" value="<%=String.valueOf((Integer)actionMap1.get("prodid"))%>" />
					<input type="hidden" name="activitypropertyid<%=num%>"  value="<%=activitypropertyidstr %>" />
					<input type="hidden" name="activitybasedetailprodid<%=num%>" value="<%=prodMap.get("activitybasedetailprodid")%>"/>
					<input type="hidden" name="detailtype<%=num%>" value="2"/>
					<%
					if(odetailtype.intValue()==1){
					%>
					<custom:text property="detailnumber" name="prodhash"  size="8"  colIndex="<%=idxnum %>"/>
					<custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%}else if(odetailtype.intValue()==2){%>
					<custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:textarea name="prodhash" property="detailtext" rows="2" cols="95" colIndex="<%=idxnum %>"/>
					<%}else if(odetailtype.intValue()==5){%>
        			<custom:hidden  name="prodhash"  property="detailattrachid"   colIndex="<%=idxnum%>"/>
        			<custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
        			<iframe src="<%=contextPath%>/sfe/activity/ActivityManageFileUpload.jsp?activitymanagefilesid=<custom:write  name="prodhash"  property="detailattrachid" />&feedbackstatus=<custom:write  name="visitprocessinfo"  property="status" />&detailno=<%=num%>&baseorskutype=prod&<%= OvalTools.randomURL() %>" width="300" height="50" ></iframe>					
					<%}else if(odetailtype.intValue()==6){ %>
					<custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:text property="detaildate" colIndex="<%=idxnum %>"  dataType="date"  module="IMG" size="30" name="prodhash" command="notnull" label="L_EndDate"/>
					<a onclick="javascript:c.show(this,'actionsummaryform.detaildate<%=idxnum %>','yyyy-MM-dd');"><custom:button type="3" label="L_Asterisk" imgsrc="Time.gif" border="0"/></a>
					<%}else if(odetailtype.intValue()==8){
	          			   String oSourcetype=(String)prodMap.get("sourcetype");
	          				Vector Prodfeedbacktypes=(Vector)pageContext.getAttribute("prodpropertydetails");	
	          				if(Prodfeedbacktypes==null)
	          					Prodfeedbacktypes=new Vector();
	          				HashMap prodBaseFeedtype=new HashMap();
	          				int base=0;
	          			    if(Prodfeedbacktypes !=null){
	          			     for(int sj=0;sj<Prodfeedbacktypes.size();sj++){
	          			    	HashMap pactionMap=(HashMap)Prodfeedbacktypes.get(sj);
	          			     if(pactionMap.get("type").equals(oSourcetype)){
	          			     %>
	          			     <input type="checkbox" name="prodvalues<%=activitypropertyidstr%>" id="prodids_<%=activitypropertyidstr+"_"+((HashMap)Prodfeedbacktypes.get(sj)).get("value")+"_"+(String.valueOf((Integer)actionMap1.get("prodid")))+"_"+prodMap.get("activitybasedetailprodid")%>" value="<%=((HashMap)Prodfeedbacktypes.get(sj)).get("value") %>" class="normalradio" />
	          			     
	          			     <%=((HashMap)Prodfeedbacktypes.get(sj)).get("sourcetypename")%>
	          			     <% if(base %5 ==0 && base!=0){ %>
	          			      <br>
	          			     <%} %>
	          			     <% 
	          			          prodBaseFeedtype.put(((HashMap)Prodfeedbacktypes.get(sj)).get("value"),((HashMap)Prodfeedbacktypes.get(sj)).get("sourcetypename"));  
	          			          base++;
	          			    	 }
	          			     }
	          			    }%>
	          			    <custom:hidden  name="prodhash"  property="detailchoose"   colIndex="<%=idxnum%>"/>
	          			    <custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
	          			    					
					<%}else{%>
					<input type="checkbox" name="sdetailcheck<%=idxnum %>" value="Y" <%=strCheck1%> class="normalradio"/>
          			<custom:hidden  name="prodhash"  property="detailcheck"  colIndex="<%=idxnum%>"/>
          			<custom:hidden  name="prodhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%} %>
					</td>
					<%
					if(detailID.intValue()==detailNumber.intValue()){
					  num++;
					}}else{ %>
					<%} %>
					<%} %>
					</tr>
          	<%}%>

          </table>
         </td>
       </tr> 
       
<%} %>

 
       
       
 <%
		 Vector orgpropertynames = (Vector) pageContext.getAttribute("orgpropertynames");
		 if (orgpropertynames == null)orgpropertynames = new Vector();
		 if(orgpropertynames.size()>0){
 %>     
       
        <tr>
        <td>          
          <table width="100%" border="0" cellspacing="0">           
            <tr><td class="summary_top"></td></tr>
            <tr><td ><%=label.getLabelName("L_UserFeedbackInfo")%><%=label.getLabelName("L_Colon")%></td></tr>            
          </table>
        </td>
      </tr>



	       <tr>
        <td>
          <table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
              <tr class="deepblue-left">
	         		<td class="title_center"><%=label.getLabelName("L_OrgCode")%></td>
	         		<td class="title_center"><%=label.getLabelName("L_OrgName")%></td>
	         		
         	<%
            for(int i=0;i<orgpropertynames.size();i++)
            {
            	HashMap pnameMap=(HashMap)orgpropertynames.get(i);
         	%>
         			<td class="title_center"><%=pnameMap.get("activitypropertyname")%></td>	
            <%
            }
           %> 
         	 </tr>
         	 
         	 <tr>
            
            <%
            
            Vector orgnamedetails = (Vector) pageContext.getAttribute("orgnamedetails");
            if (orgnamedetails == null)orgnamedetails = new Vector();
			
            for(int j=0;j<orgnamedetails.size();j++)
            {
            	HashMap orgMap=(HashMap)orgnamedetails.get(j);
           		Integer detailID=(Integer)orgMap.get("orgid");
			
	        %> 
	        <td><%=orgMap.get("orgcode")%></td>
	        <td><%=orgMap.get("orgname")%></td>
	        
	        
			<%
			String strCheck1="";
            for(int i=0;i<orgdetails.size();i++)
            {
            	HashMap orgHashMap=(HashMap)orgdetails.get(i);
            	Integer idxnum=new Integer(num);
           		Integer propertyID=(Integer)orgHashMap.get("activitypropertyid");
           		activitypropertyidstr=propertyID.toString();
           		Integer odetailtype=(Integer)orgHashMap.get("contenttype");
           		Integer detailNumber=(Integer)orgHashMap.get("orgid");
           		if(orgHashMap.get("orgid")==null){
           			detailNumber=detailID;
           		}
           		Integer detailNumber11=(Integer)orgHashMap.get("activitybasedetailorgid");
				if("Y".equals(orgHashMap.get("detailcheck"))){
				strCheck1="checked";}
				pageContext.setAttribute("orghash",orgHashMap);
				if(detailNumber==null){
				
            %>
			
			
			        <td>
          			<input type="hidden"  name="activitymanageid<%=num%>" value="<%=activitymanageid%>" />
          			<input type="hidden"  name="orgid<%=num%>" value="<%=String.valueOf((Integer)orgMap.get("orgid"))%>" />
					<input type="hidden" name="activitypropertyid<%=num%>"  value="<%=activitypropertyidstr %>" />
					<input type="hidden" name="activitybasedetailorgid<%=num%>" value="<%=orgHashMap.get("activitybasedetailorgid")%>"/>
					<input type="hidden" name="detailtype<%=num%>" value="2"/>
					<%
					if(odetailtype.intValue()==1){
					%>
					<custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:text property="detailnumber" name="orghash"  size="8"  colIndex="<%=idxnum %>"/>
					<%}else if(odetailtype.intValue()==2){%>
					<custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:textarea name="orghash" property="detailtext" rows="2" cols="95" colIndex="<%=idxnum %>"/>
					<%}else if(odetailtype.intValue()==5){%>
        			<custom:hidden  name="orghash"  property="detailattrachid"   colIndex="<%=idxnum%>"/>
        			<custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
        			<iframe src="<%=contextPath%>/sfe/activity/ActivityManageFileUpload.jsp?activitymanagefilesid=<custom:write  name="orghash"  property="detailattrachid" />&feedbackstatus=<custom:write  name="visitprocessinfo"  property="status" />&detailno=<%=num%>&baseorskutype=org&<%= OvalTools.randomURL() %>" width="300" height="50" ></iframe>					
					<%}else if(odetailtype.intValue()==6){ %>
					<custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:text property="detaildate" colIndex="<%=idxnum %>"  dataType="date"  module="IMG" size="30" name="orghash" command="notnull" label="L_EndDate"/>
					<a onclick="javascript:c.show(this,'actionsummaryform.detaildate<%=idxnum %>','yyyy-MM-dd');"><custom:button type="3" label="L_Asterisk" imgsrc="Time.gif" border="0"/></a>
					<%}else if(odetailtype.intValue()==8){
	          			   String oSourcetype=(String)orgHashMap.get("sourcetype");
	          				Vector Orgfeedbacktypes=(Vector)pageContext.getAttribute("orgpropertydetails");	
	          				if(Orgfeedbacktypes==null)
	          					Orgfeedbacktypes=new Vector();
	          				HashMap orgBaseFeedtype=new HashMap();
	          				int base=0;
	          			    if(Orgfeedbacktypes !=null){
	          			     for(int sa=0;sa<Orgfeedbacktypes.size();sa++){
	          			    	HashMap actionMap=(HashMap)Orgfeedbacktypes.get(sa);
	          			     if(actionMap.get("type").equals(oSourcetype)){
	          			     %>
	          			     <input type="checkbox" name="orgvalues<%=String.valueOf((Integer)orgHashMap.get("activitypropertyid")) %>" id="orgids_<%=String.valueOf((Integer)orgHashMap.get("activitypropertyid"))+"_"+((HashMap)Orgfeedbacktypes.get(sa)).get("value")+"_"+(String.valueOf((Integer)orgMap.get("orgid")))+"_"+orgHashMap.get("activitybasedetailorgid")%>" value="<%=((HashMap)Orgfeedbacktypes.get(sa)).get("value") %>" class="normalradio" />
	          			     
	          			     <%=((HashMap)Orgfeedbacktypes.get(sa)).get("sourcetypename") %>
	          			     <% if(base %5 ==0 && base!=0){ %>
	          			      <br>
	          			     <%} %>
	          			     <% 
	          			          orgBaseFeedtype.put(((HashMap)Orgfeedbacktypes.get(sa)).get("value"),((HashMap)Orgfeedbacktypes.get(sa)).get("sourcetypename"));  
	          			          base++;
	          			    	 }
	          			     }
	          			    }%>
	          			    <custom:hidden  name="orghash"  property="detailchoose"   colIndex="<%=idxnum%>"/>
	          			    <custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
	          			    
					<%}else{%>
					<input type="checkbox" name="sdetailcheck<%=idxnum %>" value="Y" <%=strCheck1%> class="normalradio"/>
          			<custom:hidden  name="orghash"  property="detailcheck"  colIndex="<%=idxnum%>"/>
          			<custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%} %>
					</td>
					
					<%num++;}else if(detailNumber!=null && detailID.intValue()==detailNumber.intValue()){ %>
					
					
					<td>
          			<!-- 
          			 -->
          			<input type="hidden"  name="activitymanageid<%=num%>" value="<%=activitymanageid%>" />
          			<input type="hidden"  name="orgid<%=num%>" value="<%=String.valueOf((Integer)orgMap.get("orgid"))%>" />
					<input type="hidden" name="activitypropertyid<%=num%>"  value="<%=activitypropertyidstr %>" />
					<input type="hidden" name="activitybasedetailorgid<%=num%>" value="<%=orgHashMap.get("activitybasedetailorgid")%>"/>
					<input type="hidden" name="detailtype<%=num%>" value="2"/>
					<%
					if(odetailtype.intValue()==1){
					%>
					<custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:text property="detailnumber" name="orghash"  size="8"  colIndex="<%=idxnum %>"/>
					<%}else if(odetailtype.intValue()==2){%>
					<custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:textarea name="orghash" property="detailtext" rows="2" cols="95" colIndex="<%=idxnum %>"/>
					<%}else if(odetailtype.intValue()==5){%>
        			<custom:hidden  name="orghash"  property="detailattrachid"   colIndex="<%=idxnum%>"/>
        			<custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
        			<iframe src="<%=contextPath%>/sfe/activity/ActivityManageFileUpload.jsp?activitymanagefilesid=<custom:write  name="orghash"  property="detailattrachid" />&feedbackstatus=<custom:write  name="visitprocessinfo"  property="status" />&detailno=<%=num%>&baseorskutype=org&<%= OvalTools.randomURL() %>" width="300" height="50" ></iframe>					
					<%}else if(odetailtype.intValue()==6){ %>
					<custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:text property="detaildate" colIndex="<%=idxnum %>"  dataType="date"  module="IMG" size="30" name="orghash" command="notnull" label="L_EndDate"/>
					<a onclick="javascript:c.show(this,'actionsummaryform.detaildate<%=idxnum %>','yyyy-MM-dd');"><custom:button type="3" label="L_Asterisk" imgsrc="Time.gif" border="0"/></a>
					<%}else if(odetailtype.intValue()==8){
	          			   String oSourcetype=(String)orgHashMap.get("sourcetype");
	          				Vector Orgfeedbacktypes=(Vector)pageContext.getAttribute("orgpropertydetails");	
	          				if(Orgfeedbacktypes==null)
	          					Orgfeedbacktypes=new Vector();
	          				HashMap orgBaseFeedtype=new HashMap();
	          				int base=0;
	          			    if(Orgfeedbacktypes !=null){
	          			     for(int sa=0;sa<Orgfeedbacktypes.size();sa++){
	          			    	HashMap actionMap=(HashMap)Orgfeedbacktypes.get(sa);
	          			     if(actionMap.get("type").equals(oSourcetype)){
	          			     %>
	          			     <input type="checkbox" name="orgvalues<%=String.valueOf((Integer)orgHashMap.get("activitypropertyid")) %>" id="orgids_<%=String.valueOf((Integer)orgHashMap.get("activitypropertyid"))+"_"+((HashMap)Orgfeedbacktypes.get(sa)).get("value")+"_"+(String.valueOf((Integer)orgMap.get("orgid")))+"_"+orgHashMap.get("activitybasedetailorgid")%>" value="<%=((HashMap)Orgfeedbacktypes.get(sa)).get("value") %>" class="normalradio" />
	          			     
	          			     <%=((HashMap)Orgfeedbacktypes.get(sa)).get("sourcetypename") %>
	          			     <% if(base %5 ==0 && base!=0){ %>
	          			      <br>
	          			     <%} %>
	          			     <% 
	          			          orgBaseFeedtype.put(((HashMap)Orgfeedbacktypes.get(sa)).get("value"),((HashMap)Orgfeedbacktypes.get(sa)).get("sourcetypename"));  
	          			          base++;
	          			    	 }
	          			     }
	          			    }%>
	          			    <custom:hidden  name="orghash"  property="detailchoose"   colIndex="<%=idxnum%>"/>
	          			    <custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
	          			    
					<%}else{%>
					<input type="checkbox" name="sdetailcheck<%=idxnum %>" value="Y" <%=strCheck1%> class="normalradio"/>
          			<custom:hidden  name="orghash"  property="detailcheck"  colIndex="<%=idxnum%>"/>
          			<custom:hidden  name="orghash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%} %>
					</td>
					<%
					if(detailID.intValue()==detailNumber.intValue()){
					  num++;
					}}else{ %>
					<%} %>
					<%} %>
					</tr>
          	<%}%>
          </table>
         </td>
       </tr> 
       
<%} %>
 	
          	
          	
<%
		Vector userpropertynames = (Vector) pageContext.getAttribute("userpropertynames");
		if (userpropertynames == null)userpropertynames = new Vector();
        if(userpropertynames.size()>0){
%>	
          	
       <tr>
        <td>          
          <table width="100%" border="0" cellspacing="0">           
            <tr><td class="summary_top"></td></tr>
            <tr><td ><%=label.getLabelName("L_OrgFeedbackInfo")%><%=label.getLabelName("L_Colon")%></td></tr>            
          </table>
        </td>
      </tr>



	       <tr>
        <td>
          <table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
              <tr class="deepblue-left">
	         		<td class="title_center"><%=label.getLabelName("L_ResponsibleEntity")%></td>
	         		<td class="title_center"><%=label.getLabelName("L_EmployeeName")%></td>
	         		
         	<%
            for(int i=0;i<userpropertynames.size();i++)
            {
            	HashMap unameMap=(HashMap)userpropertynames.get(i);
         	%>
         			<td class="title_center"><%=unameMap.get("activitypropertyname")%></td>	
            <%
            }
           %> 
         	 </tr>
         	 
         	 <tr>
            
            <%
            
            Vector usernamedetails = (Vector) pageContext.getAttribute("usernamedetails");
            if (usernamedetails == null)usernamedetails = new Vector();
			
            for(int j=0;j<usernamedetails.size();j++)
            {
            	HashMap userMap=(HashMap)usernamedetails.get(j);
           		Integer detailID=(Integer)userMap.get("userid");
			
	        %> 
	        <td><%=userMap.get("username")%></td>
	        <td><%=userMap.get("employeename")%></td>
	        
	        
			<%
			String strCheck1="";
            for(int i=0;i<userdetails.size();i++)
            {
            	HashMap userHashMap=(HashMap)userdetails.get(i);
            	Integer idxnum=new Integer(num);
           		Integer propertyID=(Integer)userHashMap.get("activitypropertyid");
           		activitypropertyidstr=propertyID.toString();
           		Integer odetailtype=(Integer)userHashMap.get("contenttype");
           		Integer detailNumber=(Integer)userHashMap.get("userid");
           		if(userHashMap.get("userid")==null){
           			detailNumber=detailID;
           		}
           		Integer detailNumber11=(Integer)userHashMap.get("activitybasedetailuserid");
				if("Y".equals(userHashMap.get("detailcheck"))){
				strCheck1="checked";}
				pageContext.setAttribute("userhash",userHashMap);
			
				if(detailNumber==null){
                
            %>
			
			
			        <td>
          			<input type="hidden"  name="activitymanageid<%=num%>" value="<%=activitymanageid%>" />
          			<input type="hidden"  name="userid<%=num%>" value="<%=String.valueOf((Integer)userMap.get("userid"))%>" />
					<input type="hidden" name="activitypropertyid<%=num%>"  value="<%=activitypropertyidstr %>" />
					<input type="hidden" name="activitybasedetailuserid<%=num%>" value="<%=userHashMap.get("activitybasedetailuserid")%>"/>
					<input type="hidden" name="detailtype<%=num%>" value="2"/>
					<%
					if(odetailtype.intValue()==1){
					%>
					<custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:text property="detailnumber" name="userhash"  size="8"  colIndex="<%=idxnum %>"/>
					<%}else if(odetailtype.intValue()==2){%>
					<custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:textarea name="userhash" property="detailtext" rows="2" cols="95" colIndex="<%=idxnum %>"/>
					<%}else if(odetailtype.intValue()==5){%>
        			<custom:hidden  name="userhash"  property="detailattrachid"   colIndex="<%=idxnum%>"/>
        			<custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
        			<iframe src="<%=contextPath%>/sfe/activity/ActivityManageFileUpload.jsp?activitymanagefilesid=<custom:write  name="userhash"  property="detailattrachid" />&feedbackstatus=<custom:write  name="visitprocessinfo"  property="status" />&detailno=<%=num%>&baseorskutype=user&<%= OvalTools.randomURL() %>" width="300" height="50" ></iframe>					
					<%}else if(odetailtype.intValue()==6){ %>
					<custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:text property="detaildate" colIndex="<%=idxnum %>"  dataType="date"  module="IMG" size="30" name="userhash" command="notnull" label="L_EndDate"/>
					<a onclick="javascript:c.show(this,'actionsummaryform.detaildate<%=idxnum %>','yyyy-MM-dd');"><custom:button type="3" label="L_Asterisk" imgsrc="Time.gif" border="0"/></a>
					<%}else if(odetailtype.intValue()==8){
	          			   String uSourcetype=(String)userHashMap.get("sourcetype");
	          				Vector Userfeedbacktypes=(Vector)pageContext.getAttribute("userpropertydetails");	
	          				if(Userfeedbacktypes==null)
	          					Userfeedbacktypes=new Vector();
	          				HashMap userBaseFeedtype=new HashMap();
	          				int base=0;
	          			    if(Userfeedbacktypes !=null){
	          			     for(int si=0;si<Userfeedbacktypes.size();si++){
	          			    	HashMap actionMap=(HashMap)Userfeedbacktypes.get(si);
	          			     if(actionMap.get("type").equals(uSourcetype)){
	          			     %>
	          			     <input type="checkbox" name="uservalues<%=String.valueOf((Integer)userHashMap.get("activitypropertyid")) %>" id="userids_<%=String.valueOf((Integer)userHashMap.get("activitypropertyid"))+"_"+((HashMap)Userfeedbacktypes.get(si)).get("value")+"_"+(detailID)+"_"+userHashMap.get("activitybasedetailuserid")%>" value="<%=((HashMap)Userfeedbacktypes.get(si)).get("value") %>" class="normalradio" />
	          			     
	          			     <%=((HashMap)Userfeedbacktypes.get(si)).get("sourcetypename") %>
	          			     <% if(base %5 ==0 && base!=0){ %>
	          			      <br>
	          			     <%} %>
	          			     <% 
	          			   		  userBaseFeedtype.put(((HashMap)Userfeedbacktypes.get(si)).get("value"),((HashMap)Userfeedbacktypes.get(si)).get("sourcetypename"));  
	          			          base++;
	          			    	 }
	          			     }
	          			    }%>
	          			    <custom:hidden  name="userhash"  property="detailchoose"   colIndex="<%=idxnum%>"/>
	          			    <custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
	          			    
					<%}else{%>
					<input type="checkbox" name="sdetailcheck<%=idxnum %>" value="Y" <%=strCheck1%> class="normalradio"/>
          			<custom:hidden  name="userhash"  property="detailcheck"  colIndex="<%=idxnum%>"/>
          			<custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%} %>
					</td>
					
					<%num++;}else if(detailNumber!=null && detailID.intValue()==detailNumber.intValue()){ %>
					
					
					<td>
          			<input type="hidden"  name="activitymanageid<%=num%>" value="<%=activitymanageid%>" />
          			<input type="hidden"  name="userid<%=num%>" value="<%=String.valueOf((Integer)userMap.get("userid"))%>" />
					<input type="hidden" name="activitypropertyid<%=num%>"  value="<%=activitypropertyidstr %>" />
					<input type="hidden" name="activitybasedetailuserid<%=num%>" value="<%=userHashMap.get("activitybasedetailuserid")%>"/>
					<input type="hidden" name="detailtype<%=num%>" value="2"/>
					<%
					if(odetailtype.intValue()==1){
					%>
					<custom:text property="detailnumber" name="userhash"  size="8"  colIndex="<%=idxnum %>"/>
					<custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%}else if(odetailtype.intValue()==2){%>
					<custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:textarea name="userhash" property="detailtext" rows="2" cols="95" colIndex="<%=idxnum %>"/>
					<%}else if(odetailtype.intValue()==5){%>
        			<custom:hidden  name="userhash"  property="detailattrachid"   colIndex="<%=idxnum%>"/>
        			<custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
        			<iframe src="<%=contextPath%>/sfe/activity/ActivityManageFileUpload.jsp?activitymanagefilesid=<custom:write  name="userhash"  property="detailattrachid" />&feedbackstatus=<custom:write  name="visitprocessinfo"  property="status" />&detailno=<%=num%>&baseorskutype=user&<%= OvalTools.randomURL() %>" width="300" height="50" ></iframe>					
					<%}else if(odetailtype.intValue()==6){ %>
					<custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<custom:text property="detaildate" colIndex="<%=idxnum %>"  dataType="date"  module="IMG" size="30" name="userhash" command="notnull" label="L_EndDate"/>
					<a onclick="javascript:c.show(this,'actionsummaryform.detaildate<%=idxnum %>','yyyy-MM-dd');"><custom:button type="3" label="L_Asterisk" imgsrc="Time.gif" border="0"/></a>
					<%}else if(odetailtype.intValue()==8){
	          			   String uSourcetype=(String)userHashMap.get("sourcetype");
	          				Vector Userfeedbacktypes=(Vector)pageContext.getAttribute("userpropertydetails");	
	          				if(Userfeedbacktypes==null)
	          					Userfeedbacktypes=new Vector();
	          				HashMap userBaseFeedtype=new HashMap();
	          				int base=0;
	          			    if(Userfeedbacktypes !=null){
	          			     for(int si=0;si<Userfeedbacktypes.size();si++){
	          			    	HashMap actionMap=(HashMap)Userfeedbacktypes.get(si);
	          			     if(actionMap.get("type").equals(uSourcetype)){
	          			     %>
	          			     <input type="checkbox" name="uservalues<%=String.valueOf((Integer)userHashMap.get("activitypropertyid")) %>" id="userids_<%=String.valueOf((Integer)userHashMap.get("activitypropertyid"))+"_"+((HashMap)Userfeedbacktypes.get(si)).get("value")+"_"+(detailID)+"_"+userHashMap.get("activitybasedetailuserid")%>" value="<%=((HashMap)Userfeedbacktypes.get(si)).get("value") %>" class="normalradio" />
	          			     
	          			     <%=((HashMap)Userfeedbacktypes.get(si)).get("sourcetypename") %>
	          			     <% if(base %5 ==0 && base!=0){ %>
	          			      <br>
	          			     <%} %>
	          			     <% 
	          			   		  userBaseFeedtype.put(((HashMap)Userfeedbacktypes.get(si)).get("value"),((HashMap)Userfeedbacktypes.get(si)).get("sourcetypename"));  
	          			          base++;
	          			    	 }
	          			     }
	          			    }%>
	          			    <custom:hidden  name="userhash"  property="detailchoose"   colIndex="<%=idxnum%>"/>
	          			    <custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
	          			    
					<%}else{%>
					<input type="checkbox" name="sdetailcheck<%=idxnum %>" value="Y" <%=strCheck1%> class="normalradio"/>
          			<custom:hidden  name="userhash"  property="detailcheck"  colIndex="<%=idxnum%>"/>
          			<custom:hidden  name="userhash"  property="detailtype"  colIndex="<%=idxnum%>" value="2"/>
					<%} %>
					</td>
					<%
					if(detailID.intValue()==detailNumber.intValue()){
					  num++;
					}}else{ %>
					<%} %>
					<%} %>
					</tr>
          	<%}%>
          </table>
         </td>
       </tr> 
       
<%} %>
       
       
       

     <input type="hidden" name="numrows" value="<%=num%>"/>	



		<tr>
		<td>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td class="summary_top"></td>
					</tr>
					<tr>
						<td class="td_center">
							<a onclick='page_add()'><custom:button type="1" label="L_Save" imgsrc="finish.gif" border="0" style="width:60" /></a>
							<a onclick="page_back();"><custom:button type="1" label="L_Back" border="0"  imgsrc="finish.gif" style="width:60" /></a>
						</td>
					</tr>
				</table>
						
					</td>
				</tr>
			</table>
			
	
		</form>
<script>

function page_add(){

	var myform = eval("document.actionsummaryform");
	for(i=0;i<Number(myform.numrows.value);i++)
	{
		var objscheck=eval("myform.sdetailcheck"+i);
		var objcheck=eval("myform.detailcheck"+i);
		if(objscheck!=null && objscheck.checked)
		{
			objcheck.value="Y";
		}
		else if(objscheck!=null && !objscheck.checked)
		{
			objcheck.value=" ";
		}

		var objnumber=eval("myform.detailnumber"+i);
		if(objnumber!=null && !isNumeric(objnumber.value))
		{
			alert("<%= message.getMessageDesc("VALUE_MUST_BE_NUMBER_TYPE",label.getLabelName("L_TenderTypeValue"))%>");
			eval("myform.detailnumber"+i).select();
			return;
		}
			
	}



	

//基本信息的多选

<%
int vseq=0;
for(int a=0;a<totalsummary.size();a++){
	      HashMap vactionMap=(HashMap)totalsummary.get(a);
	      if(vactionMap==null)
	      		vactionMap=new HashMap();
	     	
	      Integer voFeedbacktype=(Integer)vactionMap.get("contenttype");
	      Vector Basefeedbacktypes=(Vector)pageContext.getAttribute("propertydetails");	
				if(Basefeedbacktypes==null)
					Basefeedbacktypes=new Vector();
		    
	      if(voFeedbacktype.intValue()==8){	
	     	     String voSourcetype=(String)vactionMap.get("sourcetype");
	     	     int x=0;
	     	     int xu=0;
	   %>
	   var feedbackmultiselecttemp="";
	   <%
			for(int b=0;b<Basefeedbacktypes.size();b++){
				    	 if((((HashMap)Basefeedbacktypes.get(b)).get("stype")).equals(voSourcetype)){
	   %>
	     if(<%=xu%>==0){
	       document.getElementById("detailchoose"+<%=vseq%>).value=" ";
	     }
	     if(document.getElementById("baseids_"+<%=(Integer)vactionMap.get("activitypropertyid") %>+"_"+<%=((HashMap)Basefeedbacktypes.get(b)).get("typevalue")%>).checked){

	         if(!isEmpty(document.getElementById("detailchoose"+<%=vseq%>).value)){
	            feedbackmultiselecttemp=feedbackmultiselecttemp+document.getElementById("baseids_"+<%=(Integer)vactionMap.get("activitypropertyid") %>+"_"+<%=((HashMap)Basefeedbacktypes.get(b)).get("typevalue")%>).value+",";
	          }else{
	            feedbackmultiselecttemp="";
	            feedbackmultiselecttemp=document.getElementById("baseids_"+<%=(Integer)vactionMap.get("activitypropertyid") %>+"_"+<%=((HashMap)Basefeedbacktypes.get(b)).get("typevalue")%>).value+",";
	          }
	          document.getElementById("detailchoose"+<%=vseq%>).value=feedbackmultiselecttemp.substring(0,feedbackmultiselecttemp.length-1);
	     } 
	   <%         x++; 
	              xu++;
				    	 } 
				     }
			   }
	      vseq++;
	  }
%>

		
		

//产品反馈信息的多选

<%
int vpseq=totalsummary.size();
       	Vector prdndetails = (Vector) pageContext.getAttribute("prdndetails");
       	if (prdndetails == null)
       	prdndetails = new Vector();
for(int j=0;j<prdndetails.size();j++)
    {
        HashMap actionMap1=(HashMap)prdndetails.get(j);
       	Integer detailID=(Integer)actionMap1.get("prodid");
   for(int i=0;i<proddetails.size();i++)
	     {
	        	System.out.print(proddetails.size());
	            HashMap prodMap=(HashMap)proddetails.get(i);
           		Integer detailNumber=(Integer)prodMap.get("prodid");
           		if(prodMap.get("prodid")==null){
           			detailNumber=detailID;
           		}
	       	    Integer propertyID=(Integer)prodMap.get("activitypropertyid");
	       		Integer detailNumber111=(Integer)prodMap.get("activitybasedetailprodid");
	       		Integer vpFeedbacktype=(Integer)prodMap.get("contenttype");
if(vpFeedbacktype.intValue()==8){	
		     	     String voSourcetype=(String)prodMap.get("sourcetype");
		     	     int xp=0;
		     	     int xm=0;
	   %>
	   var feedbackmultiselecttempprod="";
	   <%
  				Vector Prodfeedbacktypes=(Vector)pageContext.getAttribute("prodpropertydetails");	
  				if(Prodfeedbacktypes==null)
  					Prodfeedbacktypes=new Vector();
  				
  for(int bi=0;bi<Prodfeedbacktypes.size();bi++){
    if((((HashMap)Prodfeedbacktypes.get(bi)).get("type")).equals(voSourcetype)){
    	if(detailNumber!=null && detailID.intValue()==detailNumber.intValue()){
    	    %>
    	     if(<%=xm%>==0){
    	       document.getElementById("detailchoose"+<%=vpseq%>).value=" ";
    	     }
    	     if(document.getElementById("prodids_"+<%=propertyID%>+"_"+<%=((HashMap)Prodfeedbacktypes.get(bi)).get("value")%>+"_"+<%=detailID%>+"_"+<%=(Integer)prodMap.get("activitybasedetailprodid")%>).checked){

    	          if(!isEmpty(document.getElementById("detailchoose"+<%=vpseq%>).value)){
    	        	 feedbackmultiselecttempprod=feedbackmultiselecttempprod+document.getElementById("prodids_"+<%=propertyID%>+"_"+<%=((HashMap)Prodfeedbacktypes.get(bi)).get("value")%>+"_"+<%=detailID%>+"_"+<%=(Integer)prodMap.get("activitybasedetailprodid")%>).value+",";
    	          }else{
    	        	  feedbackmultiselecttempprod="";
    	        	  feedbackmultiselecttempprod=document.getElementById("prodids_"+<%=propertyID%>+"_"+<%=((HashMap)Prodfeedbacktypes.get(bi)).get("value")%>+"_"+<%=detailID%>+"_"+<%=(Integer)prodMap.get("activitybasedetailprodid")%>).value+",";
    	          }
    	          document.getElementById("detailchoose"+<%=vpseq%>).value=feedbackmultiselecttempprod.substring(0,feedbackmultiselecttempprod.length-1);
    	          } 
    		<%}else if(detailNumber==null) {
    		%>
    	     if(<%=xm%>==0){
    	       document.getElementById("detailchoose"+<%=vpseq%>).value=" ";
    	     }
    	     if(document.getElementById("prodids_"+<%=propertyID%>+"_"+<%=((HashMap)Prodfeedbacktypes.get(bi)).get("value")%>+"_"+<%=detailID%>+"_"+<%=(Integer)prodMap.get("activitybasedetailprodid")%>).checked){
    	         if(!isEmpty(document.getElementById("detailchoose"+<%=vpseq%>).value)){
    	        	 feedbackmultiselecttempprod=feedbackmultiselecttempprod+document.getElementById("prodids_"+<%=propertyID%>+"_"+<%=((HashMap)Prodfeedbacktypes.get(bi)).get("value")%>+"_"+<%=detailID%>+"_"+<%=(Integer)prodMap.get("activitybasedetailprodid")%>).value+",";
    	          }else{
    	        	  feedbackmultiselecttempprod="";
    	        	  feedbackmultiselecttempprod=document.getElementById("prodids_"+<%=propertyID%>+"_"+<%=((HashMap)Prodfeedbacktypes.get(bi)).get("value")%>+"_"+<%=detailID%>+"_"+<%=(Integer)prodMap.get("activitybasedetailprodid")%>).value+",";
    	          }
    	          document.getElementById("detailchoose"+<%=vpseq%>).value=feedbackmultiselecttempprod.substring(0,feedbackmultiselecttempprod.length-1);
    	          }
    		<%
    		}%>  
	     <%         
	     xm++;   
	 } 
   }  
 }
    if(detailID.intValue()==detailNumber.intValue()){
	 vpseq++;    
    }   
  }
}
%>





//机构反馈信息多选

<%
 int vxseq=vpseq;
 
 Vector orgnamedetails = (Vector) pageContext.getAttribute("orgnamedetails");
 if (orgnamedetails == null)orgnamedetails = new Vector();
 
for(int j1=0;j1<orgnamedetails.size();j1++){
	 HashMap orgMap=(HashMap)orgnamedetails.get(j1);
     Integer detailID=(Integer)orgMap.get("orgid");	
 
	 for(int aa=0;aa<orgdetails.size();aa++){
		    HashMap vorgMap=(HashMap)orgdetails.get(aa);
		      if(vorgMap==null)vorgMap=new HashMap();
		      Integer vorgFeedbacktype=(Integer)vorgMap.get("contenttype");
		      Integer detailNumber=(Integer)vorgMap.get("orgid");
		      if(vorgMap.get("orgid")==null){detailNumber=detailID;}
				if(vorgFeedbacktype.intValue()==8){	
			    String voSourcetype=(String)vorgMap.get("sourcetype");
	  	        int xx=0;
	  	        int xs=0;
         %>
		var feedbackmultiselecttemporg="";
         <%
		   	      Vector Orgfeedbacktypes=(Vector)pageContext.getAttribute("orgpropertydetails");
				  if(Orgfeedbacktypes==null)Orgfeedbacktypes=new Vector();
		  
		for(int bb=0;bb<Orgfeedbacktypes.size();bb++){
		              if((((HashMap)Orgfeedbacktypes.get(bb)).get("type")).equals(voSourcetype)){
		            	  if(detailNumber!=null && detailID.intValue()==detailNumber.intValue()){
         %>
	     if(<%=xs%>==0){
	       document.getElementById("detailchoose"+<%=vxseq%>).value=" ";
	     }
	     if(document.getElementById("orgids_"+<%=String.valueOf((Integer)vorgMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Orgfeedbacktypes.get(bb)).get("value")%>+"_"+<%=String.valueOf((Integer)orgMap.get("orgid"))%>+"_"+<%=String.valueOf((Integer)vorgMap.get("activitybasedetailorgid"))%>).checked){

	         if(!isEmpty(document.getElementById("detailchoose"+<%=vxseq%>).value)){
	        	 feedbackmultiselecttemporg=feedbackmultiselecttemporg+document.getElementById("orgids_"+<%=String.valueOf((Integer)vorgMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Orgfeedbacktypes.get(bb)).get("value")%>+"_"+<%=String.valueOf((Integer)orgMap.get("orgid"))%>+"_"+<%=String.valueOf((Integer)vorgMap.get("activitybasedetailorgid"))%>).value+",";
	          }else{
	        	  feedbackmultiselecttemporg="";
	        	  feedbackmultiselecttemporg=document.getElementById("orgids_"+<%=String.valueOf((Integer)vorgMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Orgfeedbacktypes.get(bb)).get("value")%>+"_"+<%=String.valueOf((Integer)orgMap.get("orgid"))%>+"_"+<%=String.valueOf((Integer)vorgMap.get("activitybasedetailorgid"))%>).value+",";
	          }
	       
	          document.getElementById("detailchoose"+<%=vxseq%>).value=feedbackmultiselecttemporg.substring(0,feedbackmultiselecttemporg.length-1);
	     }        
  	   
		<%}else if(detailNumber==null) {
				%>
		     if(<%=xs%>==0){
		       document.getElementById("detailchoose"+<%=vxseq%>).value=" ";
		     }
		    
		     if(document.getElementById("orgids_"+<%=String.valueOf((Integer)vorgMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Orgfeedbacktypes.get(bb)).get("value")%>+"_"+<%=String.valueOf((Integer)orgMap.get("orgid"))%>+"_"+<%=String.valueOf((Integer)vorgMap.get("activitybasedetailorgid"))%>).checked){
	
		         if(!isEmpty(document.getElementById("detailchoose"+<%=vxseq%>).value)){
		        	 feedbackmultiselecttemporg=feedbackmultiselecttemporg+document.getElementById("orgids_"+<%=String.valueOf((Integer)vorgMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Orgfeedbacktypes.get(bb)).get("value")%>+"_"+<%=String.valueOf((Integer)orgMap.get("orgid"))%>+"_"+<%=String.valueOf((Integer)vorgMap.get("activitybasedetailorgid"))%>).value+",";
		          }else{
		        	  feedbackmultiselecttemporg="";
		        	  feedbackmultiselecttemporg=document.getElementById("orgids_"+<%=String.valueOf((Integer)vorgMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Orgfeedbacktypes.get(bb)).get("value")%>+"_"+<%=String.valueOf((Integer)orgMap.get("orgid"))%>+"_"+<%=String.valueOf((Integer)vorgMap.get("activitybasedetailorgid"))%>).value+",";
		          }
		       
		          document.getElementById("detailchoose"+<%=vxseq%>).value=feedbackmultiselecttemporg.substring(0,feedbackmultiselecttemporg.length-1);
		     }
		<%
			}%>  
		 <%         
		 	xs++;   
					} 
				}  
			}
		if(detailID.intValue()==detailNumber.intValue()){
			vxseq++;    
		}   
	}
}
%>




//客户反馈信息多选

<%
int vcseq=vxseq;
		Vector usernamedetails = (Vector) pageContext.getAttribute("usernamedetails");
		if (usernamedetails == null)usernamedetails = new Vector();
for(int jg=0;jg<usernamedetails.size();jg++)
        {
            	HashMap userMap=(HashMap)usernamedetails.get(jg);
           		Integer detailID=(Integer)userMap.get("userid");
 
	for(int ac=0;ac<userdetails.size();ac++){
		    HashMap vUserMap=(HashMap)userdetails.get(ac);
		      if(vUserMap==null)vUserMap=new HashMap();
		      
		      Integer vuserFeedbacktype=(Integer)vUserMap.get("contenttype");
		      Integer detailNumber=(Integer)vUserMap.get("userid");
		      
		      if(vUserMap.get("userid")==null){detailNumber=detailID;}
				if(vuserFeedbacktype.intValue()==8){	
			    String vuSourcetype=(String)vUserMap.get("sourcetype");
	  	        //int xx=0;
	  	        int xc=0;
         %>
		var feedbackmultiselecttempuser="";
         <%
				Vector Userfeedbacktypes=(Vector)pageContext.getAttribute("userpropertydetails");	
				if(Userfeedbacktypes==null)Userfeedbacktypes=new Vector();
		  
		for(int bf=0;bf<Userfeedbacktypes.size();bf++){
		              if((((HashMap)Userfeedbacktypes.get(bf)).get("type")).equals(vuSourcetype)){
		            	  if(detailNumber!=null && detailID.intValue()==detailNumber.intValue()){
         %>
	     if(<%=xc%>==0){
	       document.getElementById("detailchoose"+<%=vcseq%>).value=" ";
	     }
	     if(document.getElementById("userids_"+<%=String.valueOf((Integer)vUserMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Userfeedbacktypes.get(bf)).get("value")%>+"_"+<%=detailID%>+"_"+<%=String.valueOf((Integer)vUserMap.get("activitybasedetailuserid"))%>).checked){

	         if(!isEmpty(document.getElementById("detailchoose"+<%=vcseq%>).value)){
	        	 feedbackmultiselecttemporg=feedbackmultiselecttemporg+document.getElementById("userids_"+<%=String.valueOf((Integer)vUserMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Userfeedbacktypes.get(bf)).get("value")%>+"_"+<%=detailID%>+"_"+<%=String.valueOf((Integer)vUserMap.get("activitybasedetailuserid"))%>).value+",";
	          }else{
	        	  feedbackmultiselecttempuser="";
	        	  feedbackmultiselecttempuser=document.getElementById("userids_"+<%=String.valueOf((Integer)vUserMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Userfeedbacktypes.get(bf)).get("value")%>+"_"+<%=detailID%>+"_"+<%=String.valueOf((Integer)vUserMap.get("activitybasedetailuserid"))%>).value+",";
	          }
	       
	          document.getElementById("detailchoose"+<%=vcseq%>).value=feedbackmultiselecttempuser.substring(0,feedbackmultiselecttempuser.length-1);
	     }        
  	   
		<%}else if(detailNumber==null) {%>
		     if(<%=xc%>==0){
			       document.getElementById("detailchoose"+<%=vcseq%>).value=" ";
			     }
			     if(document.getElementById("userids_"+<%=String.valueOf((Integer)vUserMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Userfeedbacktypes.get(bf)).get("value")%>+"_"+<%=detailID%>+"_"+<%=String.valueOf((Integer)vUserMap.get("activitybasedetailuserid"))%>).checked){
	
			         if(!isEmpty(document.getElementById("detailchoose"+<%=vcseq%>).value)){
			        	 feedbackmultiselecttemporg=feedbackmultiselecttemporg+document.getElementById("userids_"+<%=String.valueOf((Integer)vUserMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Userfeedbacktypes.get(bf)).get("value")%>+"_"+<%=detailID%>+"_"+<%=String.valueOf((Integer)vUserMap.get("activitybasedetailuserid"))%>).value+",";
			          }else{
			        	  feedbackmultiselecttempuser="";
			        	  feedbackmultiselecttempuser=document.getElementById("userids_"+<%=String.valueOf((Integer)vUserMap.get("activitypropertyid"))%>+"_"+<%=((HashMap)Userfeedbacktypes.get(bf)).get("value")%>+"_"+<%=detailID%>+"_"+<%=String.valueOf((Integer)vUserMap.get("activitybasedetailuserid"))%>).value+",";
			          }
			       
			          document.getElementById("detailchoose"+<%=vcseq%>).value=feedbackmultiselecttempuser.substring(0,feedbackmultiselecttempuser.length-1);
			}
		<%
			}%>  
		 <%         
		 	xc++;   
					} 
				}  
			}
		if(detailID.intValue()==detailNumber.intValue()){
			vcseq++;    
		}   
	}
}   

%>




	   emptyToNull(actionsummaryform);
	   var frm = document.actionsummaryform;
	   frm.actionname.value = "save";
	   frm.target = "_self";
	   isRunning = true;
	   frm.submit();
}

	

</script>
	
<script>
	
//基本信息多选展示

<%
int zseq=0;
for(int i=0;i<totalsummary.size();i++){
		 HashMap zactionMap=(HashMap)totalsummary.get(i);
        if(zactionMap==null)
       	 zactionMap=new HashMap();
        Integer zoFeedbacktype=(Integer)zactionMap.get("contenttype");
        if(zoFeedbacktype.intValue()==8){	
       	 String zFeedbackmultiselect=(String)zactionMap.get("detailchoose");
       	if(zFeedbackmultiselect !=null){
       	 String[] ss = zFeedbackmultiselect.split(","); 
       	 for(int s=0;s<ss.length;s++){
         %>
           document.getElementById("baseids_"+<%=(Integer)zactionMap.get("activitypropertyid") %>+"_"+<%=(Integer.valueOf(ss[s])).intValue()%>).checked=true;
         <%
       	 	}
       	}
   }
}
%>
	 

//产品反馈信息多选展示
<%
int zpseq=totalsummary.size();
for(int j=0;j<prdndetails.size();j++)
	 {
	    	HashMap actionMap1=(HashMap)prdndetails.get(j);
	   		Integer detailID=(Integer)actionMap1.get("prodid");
		for(int p=0;p<proddetails.size();p++){
			 HashMap pactionMap=(HashMap)proddetails.get(p);
	        if(pactionMap==null)
	        	pactionMap=new HashMap();
	        Integer zpFeedbacktype=(Integer)pactionMap.get("contenttype");
	        Integer detailNumber=(Integer)pactionMap.get("prodid");
	        Integer propertyID=(Integer)pactionMap.get("activitypropertyid");
	        if(zpFeedbacktype.intValue()==8){	
	       	 String zpFeedbackmultiselect=(String)pactionMap.get("detailchoose");
	       	if(zpFeedbackmultiselect !=null){
	       	 String[] sp = zpFeedbackmultiselect.split(","); 
	       for(int s1=0;s1<sp.length;s1++){
	       		if(detailNumber!=null && detailID.intValue()==detailNumber.intValue()){
	       		 
	         %>
	           document.getElementById("prodids_"+<%=propertyID%>+"_"+<%=(Integer.valueOf(sp[s1])).intValue()%>+"_"+<%=detailID%>+"_"+<%=(Integer)pactionMap.get("activitybasedetailprodid")%>).checked=true;
	         <%
	       	 		}
	       		}
	        }
	    }
	}
}
%>



//机构信息反馈多选
<%
int oseq=zpseq;
for(int j1=0;j1<orgnamedetails.size();j1++){
	 HashMap orgMap=(HashMap)orgnamedetails.get(j1);
    Integer detailID=(Integer)orgMap.get("orgid");
    
	 for(int ii=0;ii<orgdetails.size();ii++){
			 HashMap oactionMap=(HashMap)orgdetails.get(ii);
		    if(oactionMap==null)oactionMap=new HashMap();
		    
		    Integer detailNumber=(Integer)oactionMap.get("orgid");
		    Integer zoFeedbacktype=(Integer)oactionMap.get("contenttype");
		    if(zoFeedbacktype.intValue()==8){	
		   	 String oFeedbackmultiselect=(String)oactionMap.get("detailchoose");
		   	if(oFeedbackmultiselect !=null){
		   	 String[] sa = oFeedbackmultiselect.split(","); 
		 for(int s1=0;s1<sa.length;s1++){
		   		if(detailNumber!=null && detailID.intValue()==detailNumber.intValue()){
     %>
       document.getElementById("orgids_"+<%=(Integer)oactionMap.get("activitypropertyid") %>+"_"+<%=(Integer.valueOf(sa[s1])).intValue()%>+"_"+<%=detailID%>+"_"+<%=String.valueOf((Integer)oactionMap.get("activitybasedetailorgid"))%>).checked=true;
     <%
   					}
   	 			}
   		 	}
   		}
    }
 }
%>

		
//客户信息反馈多选
<%
int useq=oseq;
for(int jc=0;jc<usernamedetails.size();jc++)
	{
		HashMap userMap=(HashMap)usernamedetails.get(jc);
		Integer detailID=(Integer)userMap.get("userid");
     
	for(int as=0;as<userdetails.size();as++){
		    HashMap vUserMap=(HashMap)userdetails.get(as);
		     if(vUserMap==null)vUserMap=new HashMap();
 		    
 		    Integer detailNumber=(Integer)vUserMap.get("userid");
 		    Integer zuFeedbacktype=(Integer)vUserMap.get("contenttype");
 		    if(zuFeedbacktype.intValue()==8){	
 		   	 String uFeedbackmultiselect=(String)vUserMap.get("detailchoose");
 		   	if(uFeedbackmultiselect !=null){
 		   	 String[] sd = uFeedbackmultiselect.split(","); 
 		 for(int s2=0;s2<sd.length;s2++){
 		   		if(detailNumber!=null && detailID.intValue()==detailNumber.intValue()){
      %>
        document.getElementById("userids_"+<%=(Integer)vUserMap.get("activitypropertyid") %>+"_"+<%=(Integer.valueOf(sd[s2])).intValue()%>+"_"+<%=detailID%>+"_"+<%=String.valueOf((Integer)vUserMap.get("activitybasedetailuserid"))%>).checked=true;
      <%
    				}
    	 		}
    		}
    	}
     }
  }
%>
	
</script>
		
</body>

</html>

